<%@ page import="com.generalynx.common.resources.Resources,
                 com.generalynx.common.constants.WebConst"%>
<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<form method="POST" name="inputForm">
    <table>
        <tr><td><b><spring:message code="subject" /></b>:</td><td><input type="text" name="subject" /></td></tr>
        <tr>
            <td><b><spring:message code="from" /></b>:</td>
            <td>
                <input type="text" name="from" />
                <a href="javascript: void(0);"
                    onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='<%=Resources.getString(Resources.CALENDAR_INFO)%>';return true"
                    onmouseout="if (timeoutDelay) calendarTimeout();window.status=''"
                    onclick="g_Calendar.show(event,'inputForm.from',false,'dd.mm.yyyy', '<%=Resources.getString(Resources.LANG)%>');return false;"
                ><img src="<%=WebConst.FRONTCONTROLLER%>/images/calendar.gif" name="imgCalendar" border="0" alt="<%=Resources.getString(Resources.CALENDAR_INFO)%>"/></a>
            </td>
        </tr>
        <tr>
            <td><b><spring:message code="till" /></b>:</td>
            <td>
                <input type="text" name="till" />
                <a href="javascript: void(0);"
                    onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='<%=Resources.getString(Resources.CALENDAR_INFO)%>';return true"
                    onmouseout="if (timeoutDelay) calendarTimeout();window.status=''"
                    onclick="g_Calendar.show(event,'inputForm.till',false,'dd.mm.yyyy', '<%=Resources.getString(Resources.LANG)%>');return false;"
                ><img src="<%=WebConst.FRONTCONTROLLER%>/images/calendar.gif" name="imgCalendar" border="0" alt="<%=Resources.getString(Resources.CALENDAR_INFO)%>"/></a>
            </td>
        </tr>
        <tr><td><b><spring:message code="creator" /></b>:</td>
            <td>
                <select name="creatorId">
                    <option value="0" ></option>
                    <c:forEach items="${creators}" var="c" >
                        <option value="<c:out value="${c.id}" />" ><c:out value="${c.person}" /></option>
                    </c:forEach>
                </select>
            </td>            
        </tr>
        <tr><td><b><spring:message code="failed" /></b>:</td>
            <td>
                <select name="failed">
                    <option value="0"><spring:message code="dontcare" /></option>
                    <option value="-1"><spring:message code="noo" /></option>
                    <option value="1"><spring:message code="yes" /></option>
                </select>
            </td>
        </tr>
        <tr><td></td><td><input type="submit" value="<spring:message code="submit" />" /></td></tr>
    </table>
</form>